<template>
	<section class="body">
		<view class="title">
			<span>唯一码：{{ content.unitNo }}</span>
			<span>状态：{{ content.flowDto[content.flowDto.length - 1].labelName }}</span>
		</view>
		<view class="content">
			<p class="imgP"><img :src="imgUrl + content.goodsImg" /></p>
			<p class="info">
				<span>款号：{{ content.goodsItemNo }}</span>
				<span>工单号：{{ content.workNo }}</span>
				<span>
					<span style='margin-right: 40rpx;'>尺码：{{ content.sizeName }}</span>
					<span>部位：{{ content.suitName }}</span>
				</span>
			</p>
			<p class="btn"><u-button size="mini" plain @click="del(content.unitNo)">删除</u-button></p>
		</view>
	</section>
</template>

<script>
export default {
	props: ['content'],
	data() {
		return {
			imgUrl: this.$imgUrl
		};
	},
	methods: {
		// 删除唯一吗
		del(unitNo) {
			this.$emit('delUnitNo', unitNo);
		}
	}
};
</script>

<style lang="scss" scoped>
.body {
	padding: 20rpx 40rpx;
	border-bottom: 1rpx solid #f1f1f1;
}
.title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 15rpx;
	font-size: 28rpx;
	color: #333;
}
.content {
	display: flex;
	align-items: center;
	font-size: 27rpx;
	height: 170rpx;
	color: #999;
	.imgP {
		height: 100%;
		img {
			width: 120rpx;
			height: 100%;
			border-radius: 10rpx;
		}
	}
	.info {
		height: 100%;
		flex: 1;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		padding-left: 20rpx;
	}
}
</style>
